"use strict";
cc._RF.push(module, '486b1KPmo5JP4Sdc7bOhx8X', 'ShopComponent');
// Script/ShopComponent.ts

Object.defineProperty(exports, "__esModule", { value: true });
var _a = cc._decorator, ccclass = _a.ccclass, property = _a.property;
var PageView = cc.PageView;
var ShopComponent = (function (_super) {
    __extends(ShopComponent, _super);
    function ShopComponent() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    ShopComponent.prototype.onLoad = function () {
        // init logic
        this.pagView.enabled = false;
    };
    ShopComponent.prototype.toPage = function (event, params) {
        this.pagView.scrollToPage(params - 1, 0);
    };
    ShopComponent.prototype.closeCurrent = function () {
        this.node.active = false;
    };
    __decorate([
        property(cc.PageView)
    ], ShopComponent.prototype, "pagView", void 0);
    ShopComponent = __decorate([
        ccclass
    ], ShopComponent);
    return ShopComponent;
}(cc.Component));
exports.default = ShopComponent;

cc._RF.pop();